package demo.hdz.libstreamingdemo;

/**
 * Created by admin on 2017/12/25.
 */

public class Util {

    //将得到的int类型的IP转换为String类型
    public static String intToIP(int i) {

        return ( (i >> 0)  & 0xFF ) + "." +
                ( (i >> 8)  & 0xFF ) + "." +
                ( (i >> 16) & 0xFF ) + "." +
                ( (i >> 24) & 0xFF ) ;
    }
}
